package com.shenyong.controller;

import com.shenyong.entity.Blogroll;
import com.shenyong.entity.Notice;
import com.shenyong.service.DeskNoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
@RequestMapping("DeskNotice")
public class DeskNoticeController {
    @Autowired
    private DeskNoticeService deskNoticeService;
    @RequestMapping("announceNotice")
    public List<Notice> announceNotice() {
        String timex="";
        return deskNoticeService.announceNotice(timex);
    }
    @RequestMapping("getBlogroll")
    public List<Blogroll> getBlogroll(){
        return deskNoticeService.getBlogroll();
    }
}
